<?php
class Library_Model_VanBan extends Library_Model_DomainObjectAbstract{

	private $_maloaivanban = null;
	private $_tenvanban = null;
	private $_manhom = null;
	private $_ngay = null;	
	private $_ngaybanhanh = null;
	private $_ngaycohieuluc = null;
	private $_maphongban = null;
	private $_machinhanh = null;
	private $_trangthai = null;
	private $_doquantrong = null;
	private $_nguoiduyet = null;
	private $_trichdan = null;
	
	private $_taptin = array();
	private $_loaivanban = null;
	private $_chinhanh = null;
	private $_nhom = null;
	private $_phongban = null;
	/**
	 * @return the $_maloaivanban
	 */
	public function getMaloaivanban() {
		return $this->_maloaivanban;
	}

	/**
	 * @param NULL $_maloaivanban
	 */
	public function setMaloaivanban($_maloaivanban) {
		$this->_maloaivanban = $_maloaivanban;
	}

	/**
	 * @return the $_tenvanban
	 */
	public function getTenvanban() {
		return $this->_tenvanban;
	}

	/**
	 * @param NULL $_tenvanban
	 */
	public function setTenvanban($_tenvanban) {
		$this->_tenvanban = $_tenvanban;
	}

	/**
	 * @return the $_manhom
	 */
	public function getManhom() {
		return $this->_manhom;
	}

	/**
	 * @param NULL $_manhom
	 */
	public function setManhom($_manhom) {
		$this->_manhom = $_manhom;
	}

	/**
	 * @return the $_ngay
	 */
	public function getNgay() {
		return $this->_ngay;
	}

	/**
	 * @param NULL $_ngay
	 */
	public function setNgay($_ngay) {
		$this->_ngay = $_ngay;
	}

	/**
	 * @return the $_ngaybanhanh
	 */
	public function getNgaybanhanh() {
		return $this->_ngaybanhanh;
	}

	/**
	 * @param NULL $_ngaybanhanh
	 */
	public function setNgaybanhanh($_ngaybanhanh) {
		$this->_ngaybanhanh = $_ngaybanhanh;
	}

	/**
	 * @return the $_ngaycohieuluc
	 */
	public function getNgaycohieuluc() {
		return $this->_ngaycohieuluc;
	}

	/**
	 * @param NULL $_ngaycohieuluc
	 */
	public function setNgaycohieuluc($_ngaycohieuluc) {
		$this->_ngaycohieuluc = $_ngaycohieuluc;
	}

	/**
	 * @return the $_maphongban
	 */
	public function getMaphongban() {
		return $this->_maphongban;
	}

	/**
	 * @param NULL $_maphongban
	 */
	public function setMaphongban($_maphongban) {
		$this->_maphongban = $_maphongban;
	}

	/**
	 * @return the $_machinhanh
	 */
	public function getMachinhanh() {
		return $this->_machinhanh;
	}

	/**
	 * @param NULL $_machinhanh
	 */
	public function setMachinhanh($_machinhanh) {
		$this->_machinhanh = $_machinhanh;
	}

	/**
	 * @return the $_trangthai
	 */
	public function getTrangthai() {
		return $this->_trangthai;
	}
	
	public function trangthaiList(){

		if($this->_trangthai == 1)
		 {
		$this->_trangthai = (string)$this->_trangthai = 'Mở';
		}
		
		else
		{
		$this->_trangthai = (string)$this->_trangthai = 'Không';
		}
		return $this->_trangthai;
	}

	/**
	 * @param NULL $_trangthai
	 */
	public function setTrangthai($_trangthai) {
		$this->_trangthai = $_trangthai;
	}

	/**
	 * @return the $_doquantrong
	 */
	public function getDoquantrong() {

		return $this->_doquantrong;
		
	}

	public function doquantrongList(){

		if($this->_doquantrong == 1)
		 {
		$this->_doquantrong = (string)$this->_doquantrong = 'Rất quan trọng';
		}
		else if($this->_doquantrong == 2)
		{
		$this->_doquantrong = (string)$this->_doquantrong = 'Quan trọng';
		}
		else if($this->_doquantrong == 3)
		{
		$this->_doquantrong = (string)$this->_doquantrong = 'Bình thường';
		}
		
		return $this->_doquantrong;
	}
	/**
	 * @param NULL $_doquantrong
	 */
	public function setDoquantrong($_doquantrong) {
		$this->_doquantrong = $_doquantrong;
	}

	/**
	 * @return the $_nguoiduyet
	 */
	public function getNguoiduyet() {
		return $this->_nguoiduyet;
	}

	/**
	 * @param NULL $_nguoiduyet
	 */
	public function setNguoiduyet($_nguoiduyet) {
		$this->_nguoiduyet = $_nguoiduyet;
	}

	/**
	 * @return the $_trichdan
	 */
	public function getTrichdan() {
		return $this->_trichdan;
	}

	/**
	 * @param NULL $_trichdan
	 */
	public function setTrichdan($_trichdan) {
		$this->_trichdan = $_trichdan;
	}

	/**
	 * @return the $_taptin
	 */
	public function getTaptin() {
		return $this->_taptin;
	}

	/**
	 * @param multitype: $_taptin
	 */
	public function setTaptin($_taptin) {
		$this->_taptin = $_taptin;
	}

	/**
	 * @return the $_loaivanban
	 */
	public function getLoaivanban() {
		return $this->_loaivanban;
	}

	/**
	 * @param NULL $_loaivanban
	 */
	public function setLoaivanban($_loaivanban) {
		$this->_loaivanban = $_loaivanban;
	}

	/**
	 * @return the $_chinhanh
	 */
	public function getChinhanh() {
		return $this->_chinhanh;
	}

	/**
	 * @param NULL $_chinhanh
	 */
	public function setChinhanh($_chinhanh) {
		$this->_chinhanh = $_chinhanh;
	}

	/**
	 * @return the $_nhom
	 */
	public function getNhom() {
		return $this->_nhom;
	}

	/**
	 * @param NULL $_nhom
	 */
	public function setNhom($_nhom) {
		$this->_nhom = $_nhom;
	}

	/**
	 * @return the $_phongban
	 */
	public function getPhongban() {
		return $this->_phongban;
	}

	/**
	 * @param NULL $_phongban
	 */
	public function setPhongban($_phongban) {
		$this->_phongban = $_phongban;
	}

	}